// pages/component/navigation-bar/index.js
Component({
  /**
   * 组件的属性列表
   */
  data: {
    statusBarHeight: 0
  },
  options: {
    addGlobalClass: true,
    multipleSlots: true
  },
  // 开发自定义的样式类
  externalClasses: ['custom-class', 'title-class'],
lifetimes:{
  created(){
    console.log('created');
  },
  attached(){
    console.log('attached');
    const info=wx.getSystemInfoSync()
    this.setData({
      statusBarHeight:info.statusBarHeight
    })
  }
},
properties: {
  back: Boolean,
  delta: {
    type: Number,
    value: 1
  }
},
methods:{
  goBack(){
  wx.navigateBack(this.data.delta)
  }
}
})
